using System;
using System.Collections.Generic;
using System.Text;

using Mud.Common.Messages;

namespace Mud.Server.Client.Commands
{
    /// <summary>
    /// Represents a client command which can be executed.
    /// </summary>
    public interface ICommand
    {
        /// <summary>
        /// Executes the command and returns a response to the command.
        /// </summary>
		/// <param name="server">Server where the command is executing.</param>
        /// <param name="commandData">Message containing data for the command.</param>
        /// <param name="executor">Client under which the command is executing.</param>
		/// <returns>Result of the command.</returns>
        IMessage Execute(IServer server, IMessage commandData, IClient executor);

    }

}
